import request from '@/utils/request'

// 创建污泥生产
export function createProSludge(data) {
  return request({
    url: '/water/pro-sludge/create',
    method: 'post',
    data: data
  })
}

// 更新污泥生产
export function updateProSludge(data) {
  return request({
    url: '/water/pro-sludge/update',
    method: 'put',
    data: data
  })
}

// 删除污泥生产
export function deleteProSludge(id) {
  return request({
    url: '/water/pro-sludge/delete?id=' + id,
    method: 'delete'
  })
}

// 获得污泥生产
export function getProSludge(id) {
  return request({
    url: '/water/pro-sludge/get?id=' + id,
    method: 'get'
  })
}

// 获得污泥生产分页
export function getProSludgePage(query) {
  return request({
    url: '/water/pro-sludge/page',
    method: 'get',
    params: query
  })
}

// 导出污泥生产 Excel
export function exportProSludgeExcel(query) {
  return request({
    url: '/water/pro-sludge/export-excel',
    method: 'get',
    params: query,
    responseType: 'blob'
  })
}
